package com.yanqu.road.entity.activity.daomu.config;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.activity.daomu.enums.DaoMuNpcShowTypeEnum;

@FieldTypeAnnotation(tableName = "t_s_activity_daomu_npc")
public class DaoMuNpcConfig {
    /**
     * 活动ID
     */
    private int activityId;
    /**
     * ID
     */
    private int id;
    /**
     * 类型
     */
    private int type;
    /**
     * 是否掉落宝箱
     */
    private int boxFlag;
    /**
     * 资源ID
     */
    private int icon;
    /**
     * 名字
     */
    private String name;
    /**
     * 描述
     */
    private String desc;
    /**
     * 基础参数
     */
    private String basePara;
    /**
     * 技能类型
     */
    private String skillId;

    /**
     * 奖励数值配置(“｜”区分池子，“＃”区分每个池子里不同的道具组合的权重，“；”表示一个道具组合里有多少种道具)
     */
    private String specialRewards;

    /**
     * 碰撞大小（宽；高
     */
    private String collisionSize;

    /**
     * 生成方式
     */
    private String bornPara;

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

    public int getIcon() {
        return icon;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public String getBasePara() {
        return basePara;
    }

    public void setBasePara(String basePara) {
        this.basePara = basePara;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public String getSpecialRewards() {
        return specialRewards;
    }

    public void setSpecialRewards(String specialRewards) {
        this.specialRewards = specialRewards;
    }

    public int getBoxFlag() {
        return boxFlag;
    }

    public void setBoxFlag(int boxFlag) {
        this.boxFlag = boxFlag;
    }

    public String getSkillId() {
        return skillId;
    }

    public void setSkillId(String skillId) {
        this.skillId = skillId;
    }

    public String getCollisionSize() {
        return collisionSize;
    }

    public void setCollisionSize(String collisionSize) {
        this.collisionSize = collisionSize;
    }

    public String getBornPara() {
        return bornPara;
    }

    public void setBornPara(String bornPara) {
        this.bornPara = bornPara;
    }

    /**
     * 获取一波生成几只怪
     * @return
     */
    public int getOneWaveNum() {
        //bornPara=2;25;1200,有第二个参数就需要再相乘
        String[] bornParaArr = this.bornPara.split(";");
        int num = 1;
        if (bornParaArr.length > 2) {
            num = Integer.parseInt(bornParaArr[1]);
        }
        return num;
    }
}
